/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SterilizationPot {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050060';
    }

    get categoryName() {
        return '\u6d88\u6bd2\u9505';
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pUPQLHgA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pZgRrvkr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'pGoxpNVd',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'peH3byfU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'ppAX3ipC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SterilizationPot;
